import java.util.Optional;
import java.util.Scanner;

public class demo07 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入三个数：");
        double a = scanner.nextDouble();
        double b = scanner.nextDouble();
        double c = scanner.nextDouble();
        if ((a>b)&(a>c)&(b>c)){
            System.out.println(a+" "+b+" "+c);
        }else if ((a>b)&(a>c)&(b<c)){
            System.out.println(a+" "+c+" "+b);
        }else if ((a<b)&(a>c)){
            System.out.println(b+" "+a+""+c);
        }else if ((a<b)&(a<c)&(b>c)){
            System.out.println(b+" "+c+" "+a);
        }else if ((a<c)&(a>b)){
            System.out.println(c+" "+a+" "+b);
        }else if ((a<c)&(a<b)&(c>b)){
            System.out.println(c+" "+b+" "+a);
        }
    }
}
